package com.tencent.cloud.uikit.widget.imageview;

import android.content.Context;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;

import com.tencent.cloud.iov.util.ViewStateUtils;
import com.tencent.cloud.uikit.R;

/**
 * @author vinsonhuang
 * @date 2018/8/14
 */
public class BackImageView extends AppCompatImageView {

    public BackImageView(Context context) {
        super(context);
        init();
    }

    public BackImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public BackImageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        ViewStateUtils.setUpViewPressState(this);
        setImageResource(R.drawable.common_button_back_nor);
    }
}
